package com.woniu.model.medicalService.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

//科室表
@Data
@TableName("ms_department")
@ApiModel(value = "Department对象", description = "科室表")
public class Department implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("科室表")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("科室等级")
    private Integer grade;

    @ApiModelProperty("科室名称")
    private String name;

    @ApiModelProperty("父id")
    private Long pId;

}
